package global

import (
	"github.com/songzhibin97/gkit/cache/local_cache"
	"server/utils/timer"

	"golang.org/x/sync/singleflight"

	"go.uber.org/zap"

	"server/config"

	"github.com/go-redis/redis/v8"
	"github.com/spf13/viper"
	"gorm.io/gorm"
	comService "server/service/common"
)

var (
	GvaDb     *gorm.DB
	GvaRedis  *redis.Client
	GvaConfig config.Server
	GvaVp     *viper.Viper
	//GvaLog    *oplogging.Logger
	GvaLog                *zap.Logger
	GvaTimer              timer.Timer = timer.NewTimerTask()
	GvaConcurrencyControl             = &singleflight.Group{}
	GvaValid              *comService.ValidTrans

	BlackCache local_cache.Cache
)
